package com.rybbaby.tss.front.tssStatistics.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * //@description  班级考勤统计
 *
 * //@author 雷春琼
 *
 * //@createDate 2017-08-10 上午12:25:24
 */
//@Entity
//@Table(name = "view_classes_attendce")
//@DynamicUpdate(true)
//@DynamicInsert(true)
public class ViewClassesAttendce implements Serializable {


	private static final long serialVersionUID = -8929712313405626978L;
	/** 课节id **/
	private String id;
	/** 会员类型 **/
	private Integer type;
	/** 授课老师 **/
	private String realName;
	/** 教室ID **/
	private String roomId;
	/** 教室ID **/
	private String roomName;
	/** 课程id **/
	private String systemId;
	/** 课程名称 **/
	private String courseName;
	/** 上课日期 **/
	private Date classTime;
	/** 上课时间起始时间 **/
	private Date startTime;
	/** 上课时间截止时间 **/
	private Date endTime;
	/** 应出勤人数 **/
	private Long sumShouldAttend;
	/** 实出勤人数 **/
	private Long sumAttendance;
	/** 出勤率  **/
	private String attendanceRate;


	/**
	 * 方法: 取得主键
	 *
	 * //@return java.lang.String 主键
	 */
	//@Id
	//@GeneratedValue(generator = "view_classes_attendceIDGenerator" , strategy = GenerationType.AUTO)
	//@GenericGenerator(name = "view_classes_attendceIDGenerator" , strategy = "uuid")
	//@Column(name = "id", nullable= false, length = 32)
	public String getId() {
		return this.id;
	}

	/**
	 * 方法: 设置主键
	 *
	 * //@param id 主键
	 */
	public void setId(String id) {
		this.id = id;
	}


	//@Column(name = "type", nullable= true, length = 11)
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	//@Column(name = "realName", nullable= true, length = 12)
	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	//@Column(name = "roomId", nullable= true, length = 32)
	public String getRoomId() {
		return roomId;
	}

	public void setRoomId(String roomId) {
		this.roomId = roomId;
	}

	//@Column(name = "roomName", nullable= true, length = 32)
	public String getRoomName() {
		return roomName;
	}

	public void setRoomName(String roomName) {
		this.roomName = roomName;
	}
	//@Column(name = "systemId", nullable= true, length = 32)
	public String getSystemId() {
		return systemId;
	}

	public void setSystemId(String systemId) {
		this.systemId = systemId;
	}

	//@Column(name = "courseName", nullable= true, length = 50)
	public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	//@Column(name = "classTime", nullable= true, length = 32)
	public Date getClassTime() {
		return classTime;
	}

	public void setClassTime(Date classTime) {
		this.classTime = classTime;
	}

	//@Column(name = "startTime", nullable= true, length = 32)
	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	//@Column(name = "endTime", nullable= true, length = 32)
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	//@Column(name = "sumShouldAttend", nullable= true, length = 11)
	public Long getSumShouldAttend() {
		return sumShouldAttend;
	}

	public void setSumShouldAttend(Long sumShouldAttend) {
		this.sumShouldAttend = sumShouldAttend;
	}

	//@Column(name = "sumAttendance", nullable= true, length = 11)
	public Long getSumAttendance() {
		return sumAttendance;
	}

	public void setSumAttendance(Long sumAttendance) {
		this.sumAttendance = sumAttendance;
	}
	//@Transient
	public String getAttendanceRate() {
		return attendanceRate;
	}

	public void setAttendanceRate(String attendanceRate) {
		this.attendanceRate = attendanceRate;
	}

}